package com.yangxk.kadmin.web.module.system.service;

import com.yangxk.kadmin.common.base.BaseService;
import com.yangxk.kadmin.web.module.system.form.DictEditForm;
import com.yangxk.kadmin.web.module.system.form.DictQueryForm;
import com.yangxk.kadmin.web.module.system.po.Dict;

import java.util.List;
import java.util.Map;

public interface DictService extends BaseService<Dict, Long>{
    Long DICT_TYPE_PARENTID = 0L;

    List<Dict> queryList(long parentId);

    long addDict(DictEditForm form);

    long updateDict(DictEditForm form);

    void deleteDict(long id);

    Map<String, List<Dict>> getAll();
}
